package com.twu.biblioteca.tools;

import com.twu.biblioteca.Library.Book;

import java.util.ArrayList;
import java.util.List;

public class BookFactory {
    public static List<Book> initBooks() {
        List<Book> bookList = new ArrayList<Book>();
        bookList.add(new Book("Head First Java", "Kathy Sierra & Bert Bates"));
        bookList.add(new Book("Thinking in Java", "Bruce Eckel"));
        bookList.add(new Book("Clean Code", "Robert C. Martin"));
        bookList.add(new Book("Test-Driven Development by Example", "Kent Beck"));
        bookList.get(3).setAvailable(false);
        bookList.get(3).setBorrower("Davide");
        return bookList;
    }
}
